//
//  DetailThrCollectionViewCell.m
//  HomeFurnishing
//
//  Created by dllo on 16/4/8.
//  Copyright © 2016年 YMing. All rights reserved.
//

#import "DetailThrCollectionViewCell.h"

@implementation DetailThrCollectionViewCell
-(void)dealloc
{
    [_imgView release];
    [super dealloc];
}
- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        self.imgView = [[UIImageView alloc] init];
        //_imgView.backgroundColor = [UIColor cyanColor];
        [self.contentView addSubview:_imgView];
        
     }
    return self;
}
//布局方法
-(void)applyLayoutAttributes:(UICollectionViewLayoutAttributes *)layoutAttributes
{
    [super applyLayoutAttributes:layoutAttributes];
    _imgView.frame = CGRectMake(0, 0, layoutAttributes.size.width, layoutAttributes.size.height );
}

@end
